-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service overview e2e test #125359
Service overview e2e test #125359
Conversation
Pinging @elastic/apm-ui (Team:apm) |
@elasticmachine merge upstream |
it('when clicking the refresh button', () => { | ||
cy.wait(aliasNames, { requestTimeout: 10000 }); | ||
cy.contains('Refresh').click(); | ||
cy.wait(aliasNames); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it expect something after clicking on refresh
?
it('when selecting a different time range and clicking the update button', () => { | ||
cy.wait(aliasNames, { requestTimeout: 10000 }); | ||
|
||
cy.selectAbsoluteTimeRange( | ||
'Oct 10, 2021 @ 01:00:00.000', | ||
'Oct 10, 2021 @ 01:30:00.000' | ||
); | ||
cy.contains('Update').click(); | ||
cy.wait(aliasNames, { requestTimeout: 10000 }); | ||
|
||
cy.contains('Refresh').click(); | ||
cy.wait(aliasNames, { requestTimeout: 10000 }); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well?
Maybe you could do something like:
cy.expectAPIsToHaveBeenCalledWith({
apisIntercepted: aliasNames,
value: 'start=xxxx&end=zzz
});
it('when selecting a different comparison window', () => { | ||
cy.get('[data-test-subj="comparisonSelect"]').should('have.value', 'day'); | ||
|
||
// selects another comparison type | ||
cy.get('[data-test-subj="comparisonSelect"]').select('week'); | ||
cy.get('[data-test-subj="comparisonSelect"]').should( | ||
'have.value', | ||
'week' | ||
); | ||
cy.wait(aliasNames, { requestTimeout: 10000 }); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here:
cy.expectAPIsToHaveBeenCalledWith({
apisIntercepted: aliasNames,
value: 'comparisonStart=...
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to do it just for the endpoint that use the comparison, I'm going to split the request in two lists
<div data-test-subj="serviceOverviewErrorsTable"> | ||
<EuiFlexGroup direction="column" gutterSize="s"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this extra div really necessary?
<div data-test-subj="serviceOverviewErrorsTable"> | |
<EuiFlexGroup direction="column" gutterSize="s"> | |
<EuiFlexGroup direction="column" gutterSize="s" data-test-subj="serviceOverviewErrorsTable"> |
<div data-test-subj="serviceOverviewInstancesTable"> | ||
<EuiFlexGroup direction="column" gutterSize="s"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div data-test-subj="serviceOverviewInstancesTable"> | |
<EuiFlexGroup direction="column" gutterSize="s"> | |
<EuiFlexGroup direction="column" gutterSize="s" data-test-subj="serviceOverviewInstancesTable"> |
<div data-test-subj="dependenciesTable"> | ||
<EuiFlexGroup direction="column" gutterSize="s"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div data-test-subj="dependenciesTable"> | |
<EuiFlexGroup direction="column" gutterSize="s"> | |
<EuiFlexGroup direction="column" gutterSize="s" data-test-subj="dependenciesTable"> |
<div data-test-subj="transactionsGroupTable"> | ||
<EuiFlexGroup direction="column" gutterSize="s"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div data-test-subj="transactionsGroupTable"> | |
<EuiFlexGroup direction="column" gutterSize="s"> | |
<EuiFlexGroup direction="column" gutterSize="s" data-test-subj="transactionsGroupTable"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some suggestions, let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding all these tests! I've added some comments on the PR
...ins/apm/ftr_e2e/cypress/integration/read_only_user/service_overview/service_overview.spec.ts
Outdated
Show resolved
Hide resolved
...ins/apm/ftr_e2e/cypress/integration/read_only_user/service_overview/service_overview.spec.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
07676c2
to
2a63a21
Compare
'have.value', | ||
'Worker' | ||
); | ||
describe('transactions', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept these tests for the transactions because they were already there, but I think we need to create a specific test file for the transactions flow
What do you think @cauemarcondes @gbamparop ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or test all the tabs flow here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can see, where are testing if the transaction type is persisted when navigating from service overview to something else, so IMO it makes sense to keep it here. What you could do is to improve the describe
title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The following labels were identified as gaps in your version labels and will be added automatically:
If any of these should not be on your pull request, please manually remove them. |
* Add e2e test for service overview * add test for comparison type change * PR review comments addressed * improve time range test Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 0e87ffc)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…pdf-generation-in-worker-thread * 'main' of github.com:elastic/kibana: (40 commits) Service overview e2e test (elastic#125359) [Graph] Make graph edges easier to click (elastic#124053) [Reporting] Add additional PNG and PDF metrics (elastic#125450) [APM] Lint rule for explicit return types (elastic#124771) [SecuritySolution] Enrich threshold data from correct fields (elastic#125376) [Uptime monitor management] Make index template installation retry (elastic#125537) [Console] Support suggesting index templates v2 (elastic#124655) [Logs UI] Support switching between log source modes (elastic#124929) SavedObjects management: change index patterns labels to data views (elastic#125356) [ci-stats] add Client class for accessing test group stats (elastic#125164) [ML] Use Discover locator in Data Visualizer instead of URL Generator (elastic#124283) [Fleet] Add retries when starting docker registry in integration tests (elastic#125530) Update osquery.asciidoc to address doc issue (elastic#125425) synthetics e2e - use custom location when defined (elastic#125560) [ci] Retry failed steps in on-merge pipeline (elastic#125550) [babel] Bump babel packages (elastic#125446) [DOCS] Updates Upgrade Assistant API status (elastic#125410) [DOCS] Minor tweaks to upgrade docs (elastic#125538) [Uptime] handle null duration on ping list (elastic#125438) [TSVB][Lens] Navigate to Lens with your current configuration (elastic#114794) ... # Conflicts: # x-pack/plugins/reporting/server/export_types/common/pdf/pdfmaker.ts # x-pack/plugins/reporting/server/export_types/printable_pdf/lib/generate_pdf.ts # x-pack/plugins/reporting/server/export_types/printable_pdf_v2/lib/generate_pdf.ts
* Add e2e test for service overview * add test for comparison type change * PR review comments addressed * improve time range test Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 0e87ffc) Co-authored-by: Miriam <[email protected]>
Added e2e test for service overview as part of #116417
when navigating to the service overview
and selecting a different environment
and clicking the refresh button
and selecting a different time range
and clicking the refresh button
and selecting a different comparison window